package com.wpt.main.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.wpt.main.service.ISdCardService;
import com.wpt.main.service.impl.SdCardService;
import com.wpt.main.util.XmlUtil;
import com.wpt.main.vo.FileObject;

/**
 *	删除文件夹
 *  @author   xinqh
 *  @Date	  2011-4-01  下午23:57:19
 */
public class DeleteFileServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;

	protected void operator(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
		String path = request.getParameter("path");
		String fileName = request.getParameter("fileName");
		ISdCardService ss = new SdCardService();
		String res = ss.deleteFileByPath(path, fileName);
		String treeXml = XmlUtil.deleteResXml(res);
		
		response.getWriter().write(treeXml);
	}

}
